function [v,t] = ecg_normalize(data,Samp_freq=550)
%% Normalize ECG
% Usage:
% [v,t] = ecg_normalize(data);
% [v,t] = ecg_normalize(data,Samp_freq)
%
% Inputs:
% data: raw signal in 16bit format
% Samp_freq: sampling frequency of the signal
% 
% Outputs:
% v: calibrated signal in volt
% t: time in second
%
% Copyright by Group 8

t = [0:length(data)-1]/Samp_freq;
v = double(data)*5/65536;

endfunction
